package com.boot1.pojo;

/**
 * @author wzm
 * @create 2024-02-26 15:31
 * project_name:JavaWeb2401
 * @Description
 */
//实体类  和数据对象封校数据的类  提供get/set方法  toString
    //也有地方把该层叫做 bean entity domain
public class Student {
    private Integer id;
    private String name;

    public Student() {
    }

    public Student(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
